﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    enum NpcType
    {
        task,
        shop,
        blacksmith

    }
   abstract class Npc
    {
        private string _name;
        private NpcType _npcType;
         
        public string Name
        {
            get { return this._name; }
            set { this._name = value; }
        }
        public NpcType NpcType
        {
            get { return this._npcType; }
            set { this._npcType = value; }
        }

        public Npc(string name, NpcType npcType)
        {

            this.Name = name;
            this.NpcType = npcType;
        }
        public abstract void Speak();   
        
    }
}
